<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title><ui:insert name="title">Supportive Learning</ui:insert></title>
        <h:outputStylesheet library="css" name="reset.css" target="head"/>
        <h:outputStylesheet library="css" name="text.css" target="head"/>
        <h:outputStylesheet library="css" name="grid.css" target="head"/>
        <h:outputStylesheet library="css" name="layout.css" target="head"/>
        <h:outputStylesheet library="css" name="nav.css" target="head"/>
        <h:outputStylesheet library="css" name="tabs.css" target="head"/>
        <!--[if IE 6]><h:outputStylesheet library="css" name="ie6.css" target="head"/><![endif]-->
        <!--[if IE 7]><h:outputStylesheet library="css" name="ie.css" target="head"/><![endif]-->
        <!-- BEGIN: load jquery -->
        <h:outputScript library="primefaces" name="jquery/jquery.js" target="head" />
        <ui:insert name="head"></ui:insert>
    </h:head>

    <h:body>
        <h:inputHidden  value="#{staffController.NoLogin()}"/>
        <div class="container_12">
            <div class="grid_12 header-repeat">
                <div id="branding">
                    <div class="floatleft">
                        <h1 style="color: #A1EAFF"><span style="color: white;">Supportive</span> Learning</h1></div>
                    <div class="floatright">
                        <div class="floatleft">
                            <img src="../../resources/img/img-profile.jpg" alt="Profile Pic" /></div>
                        <div class="floatleft marginleft10">
                            <h:form>
                            <ul class="inline-ul floatleft">
                                <li>Hello #{staffController.getLoginUser()}</li>
                                <li><h:commandLink action="#{staffController.Logout()}">Logout</h:commandLink></li>
                            </ul>
                            </h:form>
                        </div>
                    </div>
                    <div class="clear">
                    </div>
                </div>
            </div>
            <div class="clear">
            </div>
            <div class="grid_12">
                <h:form>
                <ul class="nav main">
                    <li class="ic-dashboard"><h:link outcome="/admin/default.xhtml"><span>Dashboard</span></h:link></li>
                    <li class="ic-form-style"><h:link outcome="/admin/classes/List" value="Classes" /></li>
                    <li class="ic-typography">
                        <h:commandLink action="#{courseController.showAllCourse()}" value="Course"/>
                    </li>
                    <li class="ic-charts" style="display: #{staffController.IsAdministrator()}"><h:link outcome="/admin/staff/List" value="Staff"/></li>
                    <li class="ic-grid-tables">
                        <h:commandLink action="#{studentCourseController.SearchByCourseName()}" value="StudentCourse"/>
                    </li>
                    <li class="ic-gallery dd"><h:link outcome="/admin/students/List" value="Students"/></li>
                    <li class="ic-notifications"><h:link outcome="/admin/topic/List" value="Topic"/></li>
                </ul>
                </h:form>
            </div>
            <div class="clear">
            </div>
            <div class="grid_2">
                <div class="box sidemenu">
                    <div class="block" id="section-menu">
                        <ui:insert name="leftmenu">Left Menu</ui:insert>
                    </div>
                </div>
            </div>
            <div class="grid_10">
                <div class="box round">
                    <ui:insert name="content">Content</ui:insert>
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="clear">
        </div>
        <div id="site_info">
            <p>Copyright <a href="#">HungNM</a>. All Rights Reserved.</p>
        </div>
        <ui:insert name="bottom"></ui:insert>
    </h:body>
</html>
